package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.mapper.CompetitionMapper;
import com.example.demo.pojo.Competition;
import com.example.demo.service.CompetitionService;
import com.example.demo.utils.JwtUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompetitionServiceImpl extends ServiceImpl<CompetitionMapper, Competition> implements CompetitionService {
    @Autowired
    private JwtUtil jwtUtil;
    @Autowired
    private CompetitionMapper competitionMapper;

    @Override
    public int updateNews(Integer id) {
        return competitionMapper.updateNews(id);
    }
}
